#pragma once

#include<stdio.h>
#include<math.h>
#include<windows.h>
#include<string.h>

int trans_str_to_int(char* ret);

int check_struct_net_id(char* net_id);

int check_struct_submask_id(char* submask_id);

int check_value(char* net_id, size_t size);

int netid_match_submask(char* net_id, char* sub_mask);

void authentic_identify_id(int* id);

int chack_netnum_match_to_submask(char* submask_id, int net_num);

int search_change_host_id(int new_sub_mask[], int num);

int will_change_net_id_count(int net_num);

void get_new_net_id(int int_net_id[], int pos, int count);

void function(int int_net_id[], int result[], int net_num, int pos);

void result_chart(int int_net_id[], int result[], int net_num, int pos);

